﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<System.IO.FileInfo>>" %>
<%@ Import Namespace="Q42.Wheels.Mvc.Paging" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Regular Paging
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <h2>Regular Paging</h2>
  <table>
    <tr>
      <th>
        <%= Html.RenderSortLink("FullName")%>
      </th>
      <th>
        <%= Html.RenderSortLink("What follows after the dot?", "Extension")%>
      </th>
      <th>
        <%= Html.RenderSortLink("CreationTime") %>
      </th>
      <th>
        <%= Html.RenderSortLink("ModificationTime", "LastWriteTime")%>
      </th>
    </tr>
    <% foreach (System.IO.FileInfo file in this.GetPage(Model))
       { %>
    <tr>
      <td>
        <%= file.FullName %>
      </td>
      <td>
        <%= file.Extension %>
      </td>
      <td>
        <%= file.CreationTime %>
      </td>
      <td>
        <%= file.LastWriteTime %>
      </td>
    </tr>
    <% } %>
    <tr>
      <td colspan="4">
        <%= Html.RenderPagination() %>
      </td>
    </tr>
  </table>
</asp:Content>
